* {
    margin: 0;
    padding: 0;
}

#sliderbar {
    position: fixed;
    right: 0;
    width: 35px;
    min-height: 100%;
    background-color: #000;
    color: #ffffff;
    z-index: 999;
    transition: all .3s linear;
}

#sliderbar .item {
    width: 30px;
    text-align: center;
    padding: 5px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
}

#sliderbar .item:hover {
    background-color: red;
}

#sliderbar #user {
    width: 30px;
    height: 150px;
    line-height: 220px;
    text-align: center;
}

#sliderbar #shop-cart {
    padding: 10px 0;
    border-top: 1px solid #999;
    border-bottom:1px solid #999999;
}

#sliderbar #shop-cart-num {
    width: 20px;
    height: 20px;
    color: #ffffff;
    background-color: red;
    border-radius: 20px;
    display: inline-block;
}

#sliderbar .info {
    position: absolute;
    bottom: 30px;
}

#sliderbar .tag {
    position: absolute;
    width: 80px;
    display: none;
    right: 100%;
    margin-top: 0;
    font-size: 13px;
    background-color: #999999;
}

/*针对chrome的css hack， absolute定位的处理*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #sliderbar .tag{
        position: absolute;
        width: 80px;
        display: none;
        right: 100%;
        margin-top: -20px;
        font-size: 13px;
        background-color: #999999;
    }
}

#sliderbar .tag:after{
    content: '';
    border-left: 6px solid #999999;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;

    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}

#sliderbar .item:hover .tag {
    display: inline-block;
    animation: .3s linear tagMI;
}

@keyframes tagMI {
    0%{
       opacity: 0;
        right: 200%;
    }
    100%{
        opacity: 1;
        right: 100%;
    }
}

.bar-content {
    width: 250px;
    min-height: 100%;
    color: #ffffff;
    text-align: center;
    background-color: #616161;

    position: fixed;
    right:0;
    display: none;
    z-index:99;

    transition: all .3s linear;
}

.bar-content .closeBar {
    padding: 5px;
    float: left;
    cursor: pointer;
}

/*侧边栏显示效果*/
.contentMoveLeft {
    animation: .3s linear contentML;
}

@keyframes contentML {

    0% {
        right: -250px;
    }
    100%{
        right: 0;
    }

}


/*侧边栏隐藏效果*/
.contentMoveRight {
    animation: .3s linear contentMR;
}

@keyframes contentMR {

    0% {
        right: 0px;
    }
    100%{
        right: -250px;
    }

}

/*内容切换效果，现在的逐渐从底部上升*/
.contentMoveUp {
    animation: .3s linear contentMU;
}

@keyframes contentMU {

    0% {
        top: 100%;
    }
    100%{
        top: 0;
    }

}

/*内容切换效果，原有的渐渐消失*/
.contentFadeOut {
    animation: .3s linear contentFO;
}

@keyframes contentFO {

    0% {
        opacity: 1;
    }
    100%{
        opacity: 0.4;
    }

}


